package com.gexin.model.activity.base;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import java.math.BigDecimal;
import java.util.Date;

public abstract class BaseUserActivity<M extends BaseUserActivity<M>>
        extends Model<M>
        implements IBean
{
    public static final String FIELD_ID = "id";
    public static final String FIELD_ACTIVITY_ID = "activity_id";
    public static final String FIELD_CREATE_TIME = "create_time";
    public static final String FIELD_STATUS = "status";
    public static final String FIELD_DRAW_TIME = "draw_time";
    public static final String FIELD_USE_TIME = "use_time";
    public static final String FIELD_USE_START_TIME = "use_start_time";
    public static final String FIELD_USE_END_TIME = "use_end_time";
    public static final String FIELD_PRICE = "price";
    public static final String FIELD_USER_ID = "user_id";

    public void setId(Integer id)
    {
        set("id", id);
    }

    public Integer getId()
    {
        return (Integer)get("id");
    }

    public void setActivityId(String activityId)
    {
        set("activity_id", activityId);
    }

    public String getActivityId()
    {
        return (String)get("activity_id");
    }

    public void setCreateTime(Date createTime)
    {
        set("create_time", createTime);
    }

    public Date getCreateTime()
    {
        return (Date)get("create_time");
    }

    public void setStatus(Integer status)
    {
        set("status", status);
    }

    public Integer getStatus()
    {
        return (Integer)get("status");
    }

    public void setDrawTime(Date drawTime)
    {
        set("draw_time", drawTime);
    }

    public Date getDrawTime()
    {
        return (Date)get("draw_time");
    }

    public void setUseTime(Date useTime)
    {
        set("use_time", useTime);
    }

    public Date getUseTime()
    {
        return (Date)get("use_time");
    }

    public void setUseStartTime(Date useStartTime)
    {
        set("use_start_time", useStartTime);
    }

    public Date getUseStartTime()
    {
        return (Date)get("use_start_time");
    }

    public void setUseEndTime(Date useEndTime)
    {
        set("use_end_time", useEndTime);
    }

    public Date getUseEndTime()
    {
        return (Date)get("use_end_time");
    }

    public void setPrice(BigDecimal price)
    {
        set("price", price);
    }

    public BigDecimal getPrice()
    {
        return (BigDecimal)get("price");
    }

    public void setUserId(Integer userId)
    {
        set("user_id", userId);
    }

    public Integer getUserId()
    {
        return (Integer)get("user_id");
    }
}
